<?php 
// wymagane w layout
echo $this->Section->main();
?>

<div class="content-homenpage">
	<div class="left-body-homenpage">
		<?php echo $this->Section->generate(1);?>
		<div class="clr"></div>		
		<h2 class="red"><?php __d("firma.hanibuty","Przecena")?></h2>
		<?php echo $this->element('store',array('plugin' => 'store',
			'items'=>$this->Store->products(3,array('limit'=>12))
			,'group_id'=>3
			,'params'=>array('width'=>128,'height'=>160,'padding'=>10,'margin'=>10,'border'=>1)
			));?>	
		<div class="clr"></div>	
		<?php echo $this->Html->link(__d("store","Zobacz wszystkie przecenione produkty",true),array('plugin'=>'store','controller'=>'products','action'=>'display','group_id:3'))?>
		
	</div>
	
	<div class="right-body-homenpage">
		<h2 class="red"><?php __d("firma.hanibuty","Nowosci")?></h2>
		<?php echo $this->element('store',array('plugin' => 'store',
			'items'=>$this->Store->products(2,array('limit'=>4))
			,'group_id'=>2
			,'params'=>array('width'=>128,'height'=>160,'padding'=>10,'margin'=>5,'border'=>1)
			));?>
		<div class="clr"></div>	
		<?php echo $this->Html->link(__d("store","Zobacz wszystkie nowosci",true),array('plugin'=>'store','controller'=>'products','action'=>'display','group_id:2'))?>

		<h2 class="green"><?php __d("firma.hanibuty","Promocje")?></h2>
		<?php echo $this->element('store',array('plugin' => 'store',
			'items'=>$this->Store->products(1,array('limit'=>4))
			,'group_id'=>1
			,'params'=>array('width'=>128,'height'=>160,'padding'=>10,'margin'=>10,'border'=>1)
			));?>
		<div class="clr"></div>	
		<?php echo $this->Html->link(__d("store","Zobacz wszystkie promocje",true),array('plugin'=>'store','controller'=>'products','action'=>'display','group_id:1'))?>

	</div>
</div>
<div class="clr"></div>